<template>
<div class="slider-bar-container">
  <div class="left img-box">
    <img src="@/assets/to-left.png" alt="to-left">
  </div>
  <div class="slider-box">
    <div class="slider-content flex-box">
      <slot></slot>
    </div>
  </div>
  <div class="right img-box">
    <img src="@/assets/to-right.png" alt="to-left">
  </div>
</div>
</template>

<script>
export default {
  name: "SliderBar",
  data() {
    return {
      box: null,
      content: null
    }
  },
  mounted() {
    
  },
  methods: {
    moveRight() {

    }
  }
}
</script>

<style scoped lang="scss">



.slider-bar-container {
  position: relative;
}
.left, .right {
  // display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  //box-shadow: 0 0 10px 15px rgba(241, 241, 241, 0.25);
  cursor: pointer;
  transition: .3s;
  &:hover {
    transition: .3s;
    //box-shadow: 4px 4px 20px 0 rgb(205 216 228 / 60%);
    //box-shadow: 0 0 10px 15px rgba(241, 241, 241, 0.05);
  }
}
.left {
  left: -20px;
}
.right {
  right: -20px;
}
.slider-box {
  overflow: hidden;
}
</style>
